package com.ming.springcloud.consumer.hystric;

import com.ming.springcloud.consumer.service.StudentService;
import com.ming.springcloud.consumer.util.ResponseEntity;
import com.ming.springcloud.consumer.vo.Student;
import org.springframework.stereotype.Component;

@Component
public class StudentServiceHystric implements StudentService {
    @Override
    public String hello(String name){
        return "服务不可用 " + name;
    }

    @Override
    public String findAllStudents(String name) {
        String code = "{\"code\":500,\"msg\":\"服务不可用！\"}";
        return code;
    }

    public String findStudentsById(String name,Integer id) {

        return "服务不可用 " + name;
    }

    public String delStudent(String name,Integer id) {

        return "服务不可用 " + name;
    }

    public String editStudent(String name,  Student students) {
        return "服务不可用 " + name;
    }

    public String addStudent(String name,  Student students) {
        return "服务不可用 " + name;
    }
}
